﻿using SachOnlineLibrary.DAL;
using SachOnlineLibrary.Public;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace SachOnlineLibrary.BLL
{
    public class HoaDonBLL
    {
        HoaDonDAL hoadonDAL = new HoaDonDAL();

        public DataTable EvaluateStatistics(string type, DateTime startTime)
        {
            DataTable dt = new DataTable();

            if (type.Equals("1"))
            {
                dt = hoadonDAL.ThongKeSachBanChay(startTime);
            }
            else
            {
                dt = hoadonDAL.ThongKeLoaiSachBanChay(startTime);
            }
            
            return dt;
        }

    }
}
